package com.itheima.dao;

import com.itheima.pojo.Order;
import com.itheima.pojo.OrderMes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WxOrderDao {

    @Select("select * from t_order where id = #{id}")
    Order findById(Integer id);

    Integer submitOrder(OrderMes order);

    @Select("select * from t_order where member_id = #{id}")
    List<Order> findByMemberId(Integer id);
}
